import request from '@/utils/request'

// 查询付款单位列表
export function listPaymentdept(query) {
  return request({
    url: '/system/paymentdept/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getPaymentdept(dataId) {
  return request({
    url: '/system/paymentdept/' + dataId,
    method: 'get'
  })
}

// 新增
export function addPaymentdept(data) {
  return request({
    url: '/system/paymentdept',
    method: 'post',
    data: data
  })
}

// 修改
export function updatePaymentdeptst(data) {
  return request({
    url: '/system/paymentdept',
    method: 'put',
    data: data
  })
}

// 删除
export function delPaymentdept(dataId) {
  return request({
    url: '/system/paymentdept/' + dataId,
    method: 'delete'
  })
}
